<h1>教师列表</h1>
<table class="easyui-datagrid list-table" style="width: 600px;height:auto;">
  <thead>
    <tr>
      <th field="sid" width="110" align="center">SID</th>
      <th field="name" width="110" align="center">姓名</th>
      <th field="operation" width="240" align="center">操作</th>
    </tr>
  </thead>
  <tbody>
    <% @teachers.each do |teacher| %>
      <tr>
        <td><%= teacher.sid %></td>
        <td><%= teacher.name %></td>
        <td><%= link_to "删除", :action=>'destroy', :id=>teacher %>  | <%= link_to "编辑", {:action => 'edit',:id=> teacher}%> </td> 
      </tr>
    <% end %>
  </tbody>
</table>
